package com.youbo.config;

import com.youbo.common.utils.DateUtils;
import java.util.Date;

public class Test {


    public static void  main(String[] a){
        try {
            Date date1= DateUtils.stringToDate(DateUtils.format(new Date())+" 08:00:00","yyyy-MM-dd HH:mm:ss");
            Date date2=DateUtils.stringToDate(DateUtils.format(new Date())+" 18:00:00","yyyy-MM-dd HH:mm:ss");
            Date date=new Date();
            if(date.after(date1)&&date.before(date2)){
                System.out.println("ture");
            }else{
                System.out.println("false");
            }


        } catch (Exception eee) {
            System.out.println(eee.getMessage());
        }

    }
}
